/*
 * Created on 2009-11-23
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.database;
public class WriteUserLog {
	public boolean writeUserLog(String adminName,String  OperationType,String OperationIP){
		boolean isOk=false;
		DataBase db2=new DataBase();
		String sql="insert into CQMS_Uoperator_record(AdminID,OperationType,OperationTime,OperationIP) " +
			" values('"+adminName+"','"+OperationType+"',getDate(),'"+OperationIP+"')";	
		db2.executeUpdate(sql);
		isOk=true;
		db2.closeStmt();
		db2.closeConn();
	return isOk;
	}

}
